/*
 * Copyright (c) 2016. @huishenghuo.inf,Co,Limitid.
 */

package com.xiaoq.users.service.exception;

/**
 * @author xinpeng created on 2016/1/11.
 */
public enum UsersErrorCode {


    INVALID_USER_CREATE_MODE(1200,400),
    INVALID_PASSWD(1201,403),
    USER_NOT_FOUND(1202,404),
    USER_ALREADY_EXIST(1203,409),
    INVALID_VERIFICATION_CODE(1204,403),
    BAD_PARSE_DATE(1205,400),
    USER_DELIVERY_ADDRESS_NOT_FOUND(1206,404),
    ACCOUNT_OR_PASSWORD_ERROR(1207,404),
    
    REGISTER_USER_CANNOT_ANONYMOUS_LOGIN(1210,401);
	


    public int value;
    public int httpStatus;


    UsersErrorCode(int value, int httpStatus) {
        this.value = value;
        //RFC2616中定义的HttpStatus
        this.httpStatus = httpStatus;
    }

    public int value(){
        return this.value;
    }
}
